home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Photodex - Picture Factory
/
Photodex Picture Factory 1.iso
/
dinst.bat
< prev
next >
Wrap
DOS Batch File
|
1993-10-30
|
4KB
|
128 lines
@echo off
if "%1" == "c:" goto c2
if "%1" == "d:" goto c2
if "%1" == "e:" goto c2
if "%1" == "f:" goto c2
if "%1" == "g:" goto c2
if "%1" == "h:" goto c2
if "%1" == "i:" goto c2
if "%1" == "j:" goto c2
if "%1" == "k:" goto c2
if "%1" == "l:" goto c2
if "%1" == "m:" goto c2
if "%1" == "n:" goto c2
if "%1" == "o:" goto c2
if "%1" == "p:" goto c2
if "%1" == "q:" goto c2
if "%1" == "r:" goto c2
if "%1" == "s:" goto c2
if "%1" == "t:" goto c2
if "%1" == "u:" goto c2
if "%1" == "v:" goto c2
if "%1" == "w:" goto c2
if "%1" == "x:" goto c2
if "%1" == "y:" goto c2
if "%1" == "z:" goto c2
if "%1" == "C:" goto c2
if "%1" == "D:" goto c2
if "%1" == "E:" goto c2
if "%1" == "F:" goto c2
if "%1" == "G:" goto c2
if "%1" == "H:" goto c2
if "%1" == "I:" goto c2
if "%1" == "J:" goto c2
if "%1" == "K:" goto c2
if "%1" == "L:" goto c2
if "%1" == "M:" goto c2
if "%1" == "N:" goto c2
if "%1" == "O:" goto c2
if "%1" == "P:" goto c2
if "%1" == "Q:" goto c2
if "%1" == "R:" goto c2
if "%1" == "S:" goto c2
if "%1" == "T:" goto c2
if "%1" == "U:" goto c2
if "%1" == "V:" goto c2
if "%1" == "W:" goto c2
if "%1" == "X:" goto c2
if "%1" == "Y:" goto c2
if "%1" == "Z:" goto c2
echo ║ ──────────────────────────────────────────────────────────────────
echo ║
echo ║ You must specify a destination drive to install to.
echo ║ For example, type:
echo ║
echo ║ DINST C:
echo ║
echo ║ Files will be copied to the path \PFACTORY on the destination drive.
echo ║ For example, C:\PFACTORY will be created to hold the installed files.
echo ║
echo ║ ──────────────────────────────────────────────────────────────────
goto end
:c2
cls
echo ║ ──────────────────────────────────────────────────────────────────
echo ║
echo ║ Welcome to the Picture Factory for MS-DOS installation .BAT file.
echo ║
echo ║ Installing Picture Factory will create the directory %1\PFACTORY on your
echo ║ %1 drive, and then will copy Picture Factory files into %1\PFACTORY.
echo ║
echo ║ ──────────────────────────────────────────────────────────────────
echo ║
echo ║ If this is not what you want to do, press Ctrl-C now to return to
echo ║ the MS-DOS prompt. To continue, press «Enter».
echo ║
echo ║ ──────────────────────────────────────────────────────────────────
pause
if EXIST %1\PFACTORY\prn goto :noCreate
if EXIST %1\PFACTORY\lpt1 goto :noCreate
if EXIST %1\PFACTORY\lpt2 goto :noCreate
if EXIST %1\PFACTORY\lpt3 goto :noCreate
if EXIST %1\PFACTORY\com1 goto :noCreate
if EXIST %1\PFACTORY\com2 goto :noCreate
if EXIST %1\PFACTORY\photodos.exe goto :noCreate
if EXIST %1\PFACTORY\system.cfg goto :noCreate
md %1\PFACTORY
:noCreate
echo ║ ──────────────────────────────────────────────────────────────────
echo ║
echo ║ Copying PHOTODOS.EXE to %1\PFACTORY...
copy photodos.exe %1\PFACTORY > nul
echo ║ Copying OPEN256.BMP to %1\PFACTORY...
copy open256.bmp %1\PFACTORY > nul
echo ║ Copying SYSTEM.CFG to %1\PFACTORY...
copy system.cfg %1\PFACTORY > nul
echo ║ Copying SYSTEM.DAT to %1\PFACTORY...
copy system.dat %1\PFACTORY > nul
echo ║ Copying README.TXT to %1\PFACTORY...
copy readme.txt %1\PFACTORY > nul
echo ║ Copying 00000002.DAT to %1\PFACTORY...
copy 00000002.DAT %1\PFACTORY > nul
%1
cd \PFACTORY
echo ║
echo ║ ──────────────────────────────────────────────────────────────────
echo ║
echo ║ All files have been copied to %1\PFACTORY and are ready for use.
echo ║
echo ║ ──────────────────────────────────────────────────────────────────
echo ║
echo ║ You may now type PHOTODOS to use Picture Factory.
echo ║
echo ║ For example, type:
echo ║ PHOTODOS «Enter»
echo ║
echo ║ Enjoy!
:end